package task;

import java.util.Scanner;

public class Task4_3 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int integer = input.nextInt();
        decompose(integer);
    }
    public static void decompose(int n){
        int[] array = new int[32];
        int a = 0;
        for (int i = 0; i < array.length; i++) {//将此数字每一位分解到此数组
            array[i] = n % 10;
            n /= 10;
            if(n == 0){
                a = i;//此数字的最高位
                break;
            }
        }
        for (int i = a ; i >= 0; i --) {
            System.out.print(array[i] + " ");
        }
    }
}
